import './index.css'
function Base(props){
    console.log(props);
    const {img,rt} = props;
    let rt_title = (Number(rt.title) / 10000 ).toFixed(1) + '万';
    return (<div className={'base_component'}>
        {img ? <img src={img} alt={'图片'}/> : null}
        <p className={'rt'}>
            <span className={'iconfont '+rt.lefticon}></span>
            <span> {rt_title}</span>
        </p>
    </div>)
}
export default Base;